package com.zqwh.xtool.model;

import com.zqwh.yj.sdk.utils.httpRequest.subscribers.NetCallback;
import com.zqwh.xtool.domain.LendItem;
import com.zqwh.xtool.domain.StockVO;
import com.zqwh.xtool.greendao.db.Stock;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;

public interface StockModel {
    void getStock(Long devId, Boolean hasRFID, Boolean hasLent, NetCallback<List<LendItem>> callback);
    void initStock(Long devId, String epcs, String toolIds, NetCallback<Object> callback);
    void getStockListByDevId(Long devId, NetCallback<HashMap<String, ArrayList<StockVO>>> callback);
    void getLentStockList(Long devId, String epcs, String toolIds, NetCallback<ArrayList<StockVO>> callback);
    void getNoRfidStockListByDevId(Long devId, NetCallback<ArrayList<StockVO>> callback);
    void incStock(Long devId, String incEpcs, String incToolIds, NetCallback<Object> callback);
    void redStock(Long devId, String stockIds, NetCallback<Object> callback);
    void updateEpcPosition(Long devId, List<String> positions, NetCallback<Object> callback);
    boolean insertMultStock(List<Stock> stockList);
}
